for f in `find . -regextype "posix-egrep" -regex "((.*\.cpp)|(.*\.h))"`
do
    echo $f
    cp $f $f.tmp
    i=0;
    change=""
    for s in `cat rename.lst`
    do
        if [ "$change" = "" ]; then
            change="s/\<"$s"\>/"
            echo $change
        else
            s=`echo $s | tr -d "\r\n"`
            sed -i $change$s"/g" $f
            change=""
        fi
    done
    
done